package com.idnx.mynewsdemo.http;

import com.idnx.mynewsdemo.entity.NewsBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;

public interface ApiServer {
    @Headers({"Content-Type:application/x-www-form-urlencoded"})
    @GET("index")
    Call<NewsBean> getGithubData(@Query("type") String type,
                                 @Query("page") int page,
                                 @Query("page_size") int pageSize,
                                 @Query("is_filter") int isFilter,
                                 @Query("key") String key);
}
